import request from '@/utils/request.js'

export const saveVersionApi = (version) => {
  return request.post('/admin/version/save', version)
}

export const getVersionListApi = (pageNum, pageSize, queryDto) => {
  return request.get(
    '/admin/version/findByPage/' + pageNum + '/' + pageSize,
    queryDto
  )
}

export const updateVersionApi = (version) => {
  return request.post('/admin/version/update', version)
}

export const deleteVersionApi = (version) => {
  return request.delete(`/admin/version/delete/${version}`)
}
